#
# https://wiki.debian.org/SAN/iSCSI/open-iscsi
# http://linux-iscsi.org/wiki/Open-iSCSI
# https://help.ubuntu.com/12.04/serverguide/iscsi-initiator.html
# 
# open-iscsi on debian
#

use Net::Ping;

$session1 = '';
$session2 = '';

$p = New::Ping->new();
print "$session1 is alive.\n" if $p->ping($session1);
$p->close();

$p = New::Ping->new();
print "$session2 is alive.\n" if $p->ping($session2);
$p->close();

# iscsi-initiator-utils with iscsiadm
$ADM = `iscsiadm --version`;

# if /etc/iscsi/initiatorname.iscsi exist

# map to /dev/sdx, /dev/disk/by-path/ip-*

# blkid or pv and lv

# mounted or have to mount to /home?
